export class StatusTransformer {
  private readonly successCode = '000000'
  private readonly successMsg = 'success'

  /**
   * 验证请求通讯状态
   * @param param0
   */
  transform({ ret }) {
    const [{ retCode, retMsg }] = ret
    return retCode === this.successCode && retMsg === this.successMsg
  }
}
